﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;

namespace Web.Areas.Admin.Models
{

    public class ChangePasswordModel
    {
        [Required(ErrorMessage = "原始密码不能为空")]
        public string OldPassword { get; set; }

        [Required(ErrorMessage = "新密码不能为空")]
        public string NewPassword { get; set; }

        [Required(ErrorMessage = "确认密码不能为空")]
        [EqualTo("NewPassword",ErrorMessage="确认密码不匹配")]
        public string ConfirmPassword { get; set; }

    }
}